package cn.lanqiao.bigDate.mapper.data;

import cn.lanqiao.bigDate.entity.data.DataBook;
import cn.lanqiao.bigDate.entity.data.DataBookOrder;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface DataBookMapper extends BaseMapper<DataBook> {
    /**
     *
     * @param name
     * @return
     */
    @Select("SELECT name FROM `data_book` WHERE name LIKE '%${name}%' or isbn LIKE '%${name}%' or format LIKE '%${name}%' limit 10")
    List<String> findBookName(String name);





}
